﻿@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
{
    <li class="dropdown welcome">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Welcome <b>@User.Identity.GetUserName()</b> <span class="caret"></span></a>
        <ul class="dropdown-menu" role="menu">
            <li>@Html.ActionLink("Account", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })</li>
            <li class="divider"></li>
            <li>@Html.ActionLink("Logout", "LogOff", "Account")</li>
        </ul>
    </li>
}
else
{
    @*<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink", @class = "highlight" })</li>
    <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", @class = "highlight" })</li>*@
    <li><a href="/account/register" class="@ViewBag.Register">Register</a></li>
    <li><a href="/account/login" class="@ViewBag.Login">Login</a></li>
}
